from django.urls import path

from roast.views import SpltListView, CollectView, SpltDetailsView, UpdateThumbupView, GetSpltCommentView

urlpatterns = [
    # 获取吐槽列表
    path('spit/', SpltListView.as_view()),
    path('spit/<str:id>/',SpltDetailsView.as_view()),
    path('spit/<str:id>/children/',GetSpltCommentView.as_view()),
    path('spit/<str:id>/updatethumbup/',CollectView.as_view()),
    path('spit/<str:id>/collect/',UpdateThumbupView.as_view()),

]
